package study.javabasic.arithmetic;

public class DIGUI {


    public static void main(String[] args) {
        System.out.println(sum(2));
    }

    private static int sum(int n){
        if (n==1){
            return 1;
        }
        return sum(n-1)+n;
    }
}
